#ifndef CEXPLODINGENEMY_H_
#define CEXPLODINGENEMY_H_
#include "CEnemy.h"
#include "../Animation/CAnimation.h"
#include "../Core/IListener.h"
#include <vector>
using std::vector;

class CExplodingEnemy : public CBaseEnemy
{
private:

	float scale;

	float lifeTime;

	vector<CAnimation> vAnimation;
	int CurrAnimation;

public:
	
	CExplodingEnemy();
	~CExplodingEnemy();

	void Update( float fElapsedTime);
	void Render();
	bool Load( const char* AnimInfo);

	int GetCurAnimation() { return CurrAnimation; }
	void SetCurAnimation(int newState) { CurrAnimation = newState; }

	RECT GetHealthRect();

	bool CheckCollision( IBaseInterface* pBase );
	void HandleEVent(CEvent* pEvent);
};

#endif